package com.edu.cdp.service;

import com.edu.cdp.DTO.AdminDTO;
import com.edu.cdp.domain.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
* @author Yang Can
* @description 针对表【admin】的数据库操作Service
* @createDate 2024-05-29 18:27:22
*/
public interface AdminService extends IService<Admin> {

    Admin login(String username, String password);

    Admin newUpdate(AdminDTO admin);

    Admin updateAvatar(Integer id, MultipartFile avatar);

    Admin add(AdminDTO admin);
}
